package com.sky.mapper;


import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * @author
 */
@Mapper
public interface OrderDetailMapper {
    /**
     * 新建订单
     * @param orderDetailList
     */
    void insertBatch(List<OrderDetail> orderDetailList);

    /**
     * 根据id查询订单
     * @param id
     * @return
     */
    @Select("select   *  from  order_detail  where  order_id=#{id}")
    List<OrderDetail> getByOrderId(Long id);



}
